import { request } from '@umijs/max';
export async function createCompetitionQuestion(form) {
    return request('/competition/question/create',{
        method: 'POST',
        data: form,
        headers: {
            'Content-Type': 'multipart/form-data',
          },
    })
}

export async function updateCompetitionQuestion(form) {
    return request('/competition/question/update',{
        method: 'POST',
        data: form,
    })
}
export async function paginationQuery(params) {
    return request('/competition/question/page-query/list',{
        method: 'POST',
        data: params,
        headers: {
            'Content-Type': 'application/json',
          },
    })
}
export async function queryCompQuesRoughInfoList(){
    return request('/competition/question/query/rough-info/list',{
        method: 'GET'
    })
}